﻿@using GestionCompte.Helpers

@{
    ViewBag.Title = "Accueil";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="homeSentence">
    <h2>Accueil</h2>

    Bonjour, Bienvenu sur le site de gestion des comptes. 
    <br /><br />
    Que souhaitez vous faire? 
</div>
<br /><br />
<div class="mosaicContainer">
    @Html.GenerateHomeMosaic();
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('.boxContainer').click(function () {
            var controller = $(this).attr("id");
            $('#menuForm').attr("action", "/" + controller + "/Enter");
            $('#menuForm').submit();
        });

        $('.boxContainer').mouseenter(function () {
            $(this).addClass("boxContainerMouseOver");
        });

        $('.boxContainer').mouseleave(function () {
            $(this).removeClass("boxContainerMouseOver");
        });
    });
</script>
